import ShowCounter from './Components/pages/Counter'
import User from './Components/pages/User'
import GoodView from './Components/pages/Good'

import {createStore,applyMiddleware} from 'redux'
import rootReducers from './Components/reducer'
import {Provider} from 'react-redux'
import thunk from 'redux-thunk'
const store = createStore(rootReducers,applyMiddleware(thunk))

const Redux = () => (
  <div>
    <Provider store={store}>
     <ShowCounter />
     <User />
     <GoodView />
    </Provider>
  </div>
)

export default Redux